<?php

$section = 'banner';

$id = Request::getIntNumber('id');
$backlink = Session::getBackLink('banner');
$currentlink = APPLICATION_URL . "/banner/delete/?id=". $id;

$banner = new Banner();
if(!$banner->get($id)){
	redirect($backlink);
}

$banner->delete();

redirect($backlink);